/*For Menu Start*/


sfHover = function() {
 var sfEls = document.getElementById("menu").getElementsByTagName("LI");
 for (var i=0; i<sfEls.length; i++) {
  sfEls[i].onmouseover=function() {
   this.className+=" sfhover";
  };
  sfEls[i].onmouseout=function() {
	  this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); 
 };
}
};
/*For Menu End*/


function selectRow(obj, codeArr){

	var items = document.getElementsByName(codeArr);

	//alert(obj.checked);
	 for (index = 0; index < items.length; index++) {
		//alert(items[index]);
		 items[index].checked=obj.checked;
	 }

}

function deleteItems(){
	alert("Delete Items");
	var items = document.getElementsByName("locationCodeList");

	var count = 0;
	 for (index = 0; index < items.length; index++) {
		//alert(items[index]);
		 if(items[index].checked){
			 count++;
    	 }
	 }

	alert(count);
	
	 if (count < 1) {
	        alert("No record select");
	        return false;
    }

    //comfirm the operation.
    if (!confirm("Do you want to delete?")) {
       return false;
    }
	   
}

//Select control Utils

function emptySelectOptions(selectControl){
	if(selectControl){
		selectControl.options.length=0;
	}
}



